package org.zmhhxl.sample3.oauth2.a;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;

/**
 * Hello world!
 *
 */
@SpringBootApplication
//@EnableTransactionManagement
//@Slf4j
@EnableFeignClients(basePackages = "org.zmhhxl.api.auth")
public class Sample3Oauth2AApplication
{
    //测试事务
//    @Bean
//    public Object testBean(PlatformTransactionManager platformTransactionManager){
//        System.out.println(">>>>>>>>>>" + platformTransactionManager.getClass().getName());
//        return new Object();
//    }

    public static void main( String[] args )
    {   ConfigurableApplicationContext run = SpringApplication.run(Sample3Oauth2AApplication.class, args);
        //log.info("11111=====");
        // 查看 Environment
        Environment environment = run.getEnvironment();
        //断点调试查看environment对象
        System.out.println( "started oauth2-a" );
    }

}
